import {apiResquest} from '@/utils/Http.js'

// 科室挂号查询
export const getDepartList = params => {
    return apiResquest({
      url: "/api/hisSchedule/getDeptRegisterList_xncd",
      method: "get",
      data: params
    });
};

// 医生挂号列表
export const getDoctorList = params => {
    return apiResquest({
      url: "/api/hisSchedule/getDoctorScheduleToday",
      method: "get",
      data: params
    });
};

// 院区列表
export const getHospital = params => {
    return apiResquest({
      url: "/api/hisSchedule/getMultiHospital",
      method: "get",
      data: params
    });
};

// 历史挂号
export const getHisRegister = params => {
    return apiResquest({
      url: "/api/hisSchedule/getMyDoctorList",
      method: "get",
      data: params
    });
};

// 排班列表查询
export const getPbList = params => {
    return apiResquest({
      url: "/u/pat/doctor/scheduling",
      method: "get",
      data: params
    });
};


// 预约挂号
export const getAppointment = params => {
    return apiResquest({
      url: "/api/outPatient/appointment",
      method: "post",
      data: params
    });
};

// 预约取消
export const cancelAppointment = params => {
    return apiResquest({
      url: "/api/outPatient/cancelAppointment",
      method: "post",
      data: params
    });
};

// 挂号取消
export const cancelRegister = params => {
    return apiResquest({
      url: "/api/outPatient/cancelRegister",
      method: "post",
      data: params
    });
};

// 所有挂号信息查询
export const getAllRegister = params => {
    return apiResquest({
      url: "/api/outPatient/queryRegistered",
      method: "post",
      data: params
    });
};

// 所有挂号信息查询
export const poPayRegister = params => {
    return apiResquest({
      url: "/api/outPatient/register",
      method: "post",
      data: params
    });
};
